mp = {}
for i in range(1, int(input()) + 1):
    mp[input()] = i
from math import sqrt


def isP(x):
    if x == 1: return -1
    elif x == 2: return 1
    else:
        for i in range(2, int(sqrt(x)) + 1):
            if x % i == 0: return 0
        return 1


st = set()
for _ in range(int(input())):
    s = input()
    if s not in mp: print(s + ': Are you kidding?')
    elif s in st: print(s + ': Checked')
    elif isP(mp.get(s)) == -1: print(s + ': Mystery Award')
    elif isP(mp.get(s)) == 0: print(s + ': Chocolate')
    elif isP(mp.get(s)) == 1: print(s + ': Minion')
    st.add(s)
